package com.jboost.modules.app.dto;

import com.google.gson.annotations.SerializedName;
import com.jboost.modules.app.constant.CustomerDetailInfo;
import lombok.Data;

import java.util.List;
@Data
public class XmSJ {
    /**
     * name : ruby的新建商机－－测试
     * main_user : 11858712
     * amount : 2000
     * amount_rmb : 2000
     * amount_usd : 284.44
     * exchange_rate : 100
     * exchange_rate_usd : 14.22210
     * account_date : 1970-01-01
     * origin : 1101043666
     * type : 2
     * serial_id : O93
     * opportunity_id : 1102364611
     * stage : 1101043677
     * stage_type : 2
     * currency : CNY
     * user_id : [11858712,11858713]
     * remark :
     * external_field_data : {"1101060294":"","1101060295":"","1102341784":""}
     * create_type : 1
     * create_time : 2020-03-02 14:10:50
     * update_time : 2020-04-01 10:46:08
     * order_time : 2020-04-01 10:46:08
     * trail_time : 2020-03-02 19:15:23
     * edit_time : 2020-04-01 10:46:08
     * stage_stay_time : -1
     * approval_flow_info : []
     * department_info : {"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0"}
     * create_user_info : {"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg"}
     * main_user_info : {"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg","department_info":[{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]}
     * handler_info : [{"user_id":"11858713","nickname":"大乔","avatar":"https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng","role_id":"4"}]
     * company : {"company_id":1101048081,"name":"乔2的客户3号","is_archive":1}
     * customer : []
     * lead_name :
     * stage_info : {"stage_id":1101043677,"client_id":14119,"flow_id":1101043671,"type":2,"name":"赢单","success_rate":100,"rank":1,"remark":null,"create_user":11858711,"enable_flag":1,"create_time":"2019-11-15 11:52:05","update_time":"2020-02-12 16:09:09","tip":"恭喜赢单，再接再厉！","review_flag":0}
     * fail_type_name :
     * fail_stage_info : []
     * lock_flag : 0
     */

    private String name;
    private String main_user;
    private String amount;
    private String amount_rmb;
    private String amount_usd;
    private String exchange_rate;
    private String exchange_rate_usd;
    private String account_date;
    private String origin;
    private String type;
    private String serial_id;
    private String opportunity_id;
    private String stage;
    private String stage_type;
    private String currency;
    private String remark;
    private ExternalFieldDataBean external_field_data;
    private String create_type;
    private String create_time;
    private String update_time;
    private String order_time;
    private String trail_time;
    private String edit_time;
    private String stage_stay_time;
    private DepartmentInfoBean department_info;
    private CreateUserInfoBean create_user_info;
    private MainUserInfoBean main_user_info;
    private CompanyBean company;
    private String lead_name;
    private StageInfoBean stage_info;
    private String fail_type_name;
    private String lock_flag;
    private List<Integer> user_id;
    private List<?> approval_flow_info;
    private List<HandlerInfoBean> handler_info;
    private List<CustomerDetailInfo.DataBean.CustomersBean> customer;
    private List<?> fail_stage_info;

    public static class ExternalFieldDataBean {
        /**
         * 1101060294 :
         * 1101060295 :
         * 1102341784 :
         */

        @SerializedName("1101060294")
        private String _$1101060294;
        @SerializedName("1101060295")
        private String _$1101060295;
        @SerializedName("1102341784")
        private String _$1102341784;

        public String get_$1101060294() {
            return _$1101060294;
        }

        public void set_$1101060294(String _$1101060294) {
            this._$1101060294 = _$1101060294;
        }

        public String get_$1101060295() {
            return _$1101060295;
        }

        public void set_$1101060295(String _$1101060295) {
            this._$1101060295 = _$1101060295;
        }

        public String get_$1102341784() {
            return _$1102341784;
        }

        public void set_$1102341784(String _$1102341784) {
            this._$1102341784 = _$1102341784;
        }
    }

    public static class DepartmentInfoBean {
        /**
         * id : 8535
         * name : 风险投资部门
         * prefix : 0-
         * parent_id : 0
         */

        private String id;
        private String name;
        private String prefix;
        private String parent_id;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPrefix() {
            return prefix;
        }

        public void setPrefix(String prefix) {
            this.prefix = prefix;
        }

        public String getParent_id() {
            return parent_id;
        }

        public void setParent_id(String parent_id) {
            this.parent_id = parent_id;
        }
    }

    public static class CreateUserInfoBean {
        /**
         * user_id : 11858712
         * nickname : 小乔1
         * avatar : https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg
         */

        private String user_id;
        private String nickname;
        private String avatar;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }

    public static class MainUserInfoBean {
        /**
         * user_id : 11858712
         * nickname : 小乔1
         * avatar : https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg
         * department_info : [{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]
         */

        private String user_id;
        private String nickname;
        private String avatar;
        private List<DepartmentInfoBeanX> department_info;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public List<DepartmentInfoBeanX> getDepartment_info() {
            return department_info;
        }

        public void setDepartment_info(List<DepartmentInfoBeanX> department_info) {
            this.department_info = department_info;
        }

        public static class DepartmentInfoBeanX {
            /**
             * id : 8535
             * name : 风险投资部门
             * prefix : 0-
             * parent_id : 0
             * admin_type : 1
             */

            private String id;
            private String name;
            private String prefix;
            private String parent_id;
            private String admin_type;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrefix() {
                return prefix;
            }

            public void setPrefix(String prefix) {
                this.prefix = prefix;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }

            public String getAdmin_type() {
                return admin_type;
            }

            public void setAdmin_type(String admin_type) {
                this.admin_type = admin_type;
            }
        }
    }
@Data
    public static class CompanyBean {
        /**
         * company_id : 1101048081
         * name : 乔2的客户3号
         * is_archive : 1
         */

        private String company_id;
        private String name;
        private String is_archive;

    }
@Data
    public static class StageInfoBean {
        /**
         * stage_id : 1101043677
         * client_id : 14119
         * flow_id : 1101043671
         * type : 2
         * name : 赢单
         * success_rate : 100
         * rank : 1
         * remark : null
         * create_user : 11858711
         * enable_flag : 1
         * create_time : 2019-11-15 11:52:05
         * update_time : 2020-02-12 16:09:09
         * tip : 恭喜赢单，再接再厉！
         * review_flag : 0
         */

        private String stage_id;
        private String client_id;
        private String flow_id;
        private String type;
        private String name;
        private String success_rate;
        private String rank;
        private Object remark;
        private String create_user;
        private String enable_flag;
        private String create_time;
        private String update_time;
        private String tip;
        private String review_flag;
    }

    public static class HandlerInfoBean {
        /**
         * user_id : 11858713
         * nickname : 大乔
         * avatar : https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng
         * role_id : 4
         */

        private String user_id;
        private String nickname;
        private String avatar;
        private String role_id;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getRole_id() {
            return role_id;
        }

        public void setRole_id(String role_id) {
            this.role_id = role_id;
        }
    }
}
